<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>Tekdaqc Firmware: Digital_Output.c Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="customstyle.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Tekdaqc Firmware
   &#160;<span id="projectnumber">1.0.2.0</span>
   </div>
   <div id="projectbrief">The firmware of the Tekdaqc.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_digital___output_8c_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Groups</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Digital_Output.c</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_digital___output_8c.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright 2013 Tenkiv, Inc.</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); you may not use this file except in compliance with</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * the License. You may obtain a copy of the License at</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * an &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * specific language governing permissions and limitations under the License.</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment">/*--------------------------------------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment">/* INCLUDES */</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment">/*--------------------------------------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_tekdaqc___debug_8h.html">Tekdaqc_Debug.h</a>&quot;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_digital___output_8h.html">Digital_Output.h</a>&quot;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_tekdaqc___timers_8h.html">Tekdaqc_Timers.h</a>&quot;</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_tekdaqc___command_interpreter_8h.html">Tekdaqc_CommandInterpreter.h</a>&quot;</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_t_l_e7232___relay_driver_8h.html">TLE7232_RelayDriver.h</a>&quot;</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="boolean_8h.html">boolean.h</a>&quot;</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &lt;stdlib.h&gt;</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &lt;inttypes.h&gt;</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="comment">/*--------------------------------------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="comment">/* PRIVATE DEFINES */</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="comment">/*--------------------------------------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="_digital___output_8c.html#a60b907b7e51c1a4d6ba6be07f3237179">   46</a></span>&#160;<span class="preprocessor">#define DIGITAL_OUTPUT_FORMATTER &quot;\n\r--------------------\n\rDigital Output\n\r\tName: %s\n\r\tPhysical Channel: %i\n\r\tTimestamp: %&quot; PRIu64 &quot;\n\r\tLevel: %s\n\r--------------------\n\r\x1E&quot;</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="comment">/*--------------------------------------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="comment">/* PRIVATE VARIABLES */</span></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="comment">/*--------------------------------------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="comment">/* Pointer to the function to use when writing data to the output stream. */</span></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__configuration.html#ga163b2a4cc55a569e988df48908631967">WriteFunction</a> writer = NULL;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="comment">/*--------------------------------------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="comment">/* PRIVATE EXTERNAL VARIABLES */</span></div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="comment">/*--------------------------------------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="comment">/* List of external digital outputs */</span></div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="keyword">static</span> <a class="code" href="struct_digital___output__t.html">Digital_Output_t</a> Ext_DOutputs[NUM_DIGITAL_OUTPUTS];</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="comment">/*--------------------------------------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="comment">/* PRIVATE FUNCTION PROTOTYPES */</span></div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="comment">/*--------------------------------------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="keyword">static</span> <span class="keywordtype">void</span> RemoveDigitalOutputByID(uint8_t <span class="keywordtype">id</span>);</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;<span class="keyword">static</span> <span class="keywordtype">bool</span> isExternalOutput(uint8_t <span class="keywordtype">id</span>);</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="keyword">static</span> <span class="keywordtype">void</span> InitializeOutput(<a class="code" href="struct_digital___output__t.html">Digital_Output_t</a>* output);</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="keyword">static</span> <span class="keywordtype">void</span> SetDigitalOutputState(<a class="code" href="struct_digital___output__t.html">Digital_Output_t</a>* output, <a class="code" href="group__board__channel__constants.html#gaee574a0d48c41a3e5426ffbf8ac4c5c4">DigitalLevel_t</a> level);</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="comment">/*--------------------------------------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<span class="comment">/* PRIVATE FUNCTIONS */</span></div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="comment">/*--------------------------------------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;<span class="keyword">static</span> <span class="keywordtype">void</span> RemoveDigitalOutputByID(uint8_t <span class="keywordtype">id</span>) {</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    <span class="keywordflow">if</span> (isExternalOutput(<span class="keywordtype">id</span>)) {</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;        InitializeOutput(&amp;Ext_DOutputs[<span class="keywordtype">id</span>]);</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        <span class="comment">/* This is out of range */</span></div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;<span class="preprocessor">#ifdef DIGITALOUTPUT_DEBUG</span></div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<span class="preprocessor"></span>        printf(<span class="stringliteral">&quot;[Digital Output] Cannot find the requested digital output. Input does not exist on the board.\n\r&quot;</span>);</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="preprocessor"></span>    }</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;}</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="keyword">static</span> <span class="keywordtype">bool</span> isExternalOutput(uint8_t <span class="keywordtype">id</span>) {</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    <span class="keywordflow">if</span> (<span class="keywordtype">id</span> &gt;= 0 &amp;&amp; <span class="keywordtype">id</span> &lt; NUM_DIGITAL_OUTPUTS) {</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    }</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;}</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<span class="keyword">static</span> <span class="keywordtype">void</span> InitializeOutput(<a class="code" href="struct_digital___output__t.html">Digital_Output_t</a>* output) {</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    output-&gt;<a class="code" href="struct_digital___output__t.html#a6f1a4402ff8651dfc5e453b5e3154c2d">added</a> = <a class="code" href="group__board__channel__constants.html#ggab0f30599ceb99e5ba3b2908d8e9bd131a4ecfadabb635f0b5dd33b66498b2d04f">CHANNEL_NOTADDED</a>;</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    output-&gt;<a class="code" href="struct_digital___output__t.html#a077d2fbd9f466d58856071f5314b9c09">level</a> = <a class="code" href="group__board__channel__constants.html#ggaee574a0d48c41a3e5426ffbf8ac4c5c4ab4d04526d504d52286c0125def0faef4">LOGIC_LOW</a>;</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    output-&gt;<a class="code" href="struct_digital___output__t.html#a465bef81f6478756e5443025b1f2ddfa">timestamp</a> = 0U;</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    strcpy(output-&gt;<a class="code" href="struct_digital___output__t.html#af161017167d4afb064b9c104877041e9">name</a>, <span class="stringliteral">&quot;NONE&quot;</span>);</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    output-&gt;<a class="code" href="struct_digital___output__t.html#ac7a7d7f3d154ec3152de97d06a7870f1">output</a> = <a class="code" href="group__analog__input__constants.html#gae3bad9f0257d0c7056e81f3257d2ec80">NULL_CHANNEL</a>;</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    output-&gt;<a class="code" href="struct_digital___output__t.html#a13ee06338665fcdab36b11e8c7b7df0e">fault_status</a> = <a class="code" href="group__tle7232__driver.html#gga84bb3f68b575c6add1c27f053b87746aa41ad46c089b8040e5c8fe85befa75589">TLE7232_Normal_Operation</a>;</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    output-&gt;<a class="code" href="struct_digital___output__t.html#ada3dca6ca3d8c61b00b0a2a65055c21e">fault_timestamp</a> = 0U;</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;}</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;<span class="keyword">static</span> <span class="keywordtype">void</span> SetDigitalOutputState(<a class="code" href="struct_digital___output__t.html">Digital_Output_t</a>* output, <a class="code" href="group__board__channel__constants.html#gaee574a0d48c41a3e5426ffbf8ac4c5c4">DigitalLevel_t</a> level) {</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;    <span class="comment">/* Set the state */</span></div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    uint8_t control = <a class="code" href="group__tle7232__driver.html#ga5d2ff3c331e9b1bd5d1d4522ffc92b5d">TLE7232_ReadRegister</a>(<a class="code" href="group__tle7232__driver.html#ggabd1d28f92015db8d6a418c8346f4b4ffa5f2571f5978ed414d188b4d9d045e4c3">TLE7232_REG_CTL</a>, output-&gt;<a class="code" href="struct_digital___output__t.html#ac7a7d7f3d154ec3152de97d06a7870f1">output</a> % 8U);</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;    uint8_t channel = output-&gt;<a class="code" href="struct_digital___output__t.html#ac7a7d7f3d154ec3152de97d06a7870f1">output</a>;</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;    <span class="keywordflow">if</span> (channel &gt;= 8) { <span class="comment">/* Convert the channel to a single chip index */</span></div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;        channel -= 8;</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    }</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    uint8_t mask = 0x01 &lt;&lt; channel; <span class="comment">/* Move the bit flag to the correct position */</span></div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;    <span class="keywordflow">if</span> (level == <a class="code" href="group__digital__output.html#ga43583966bde63db2887f604cf5787741">OUTPUT_ON</a>) {</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;        control |= mask; <span class="comment">/* Set the appropriate bit */</span></div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;        control ^= mask;    <span class="comment">/* Clear the appropriate bit */</span></div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;    }</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    <a class="code" href="group__tle7232__driver.html#gabf56c66110adfb8658cff9c2f6fc5cd6">TLE7232_WriteRegister</a>(<a class="code" href="group__tle7232__driver.html#ggabd1d28f92015db8d6a418c8346f4b4ffa5f2571f5978ed414d188b4d9d045e4c3">TLE7232_REG_CTL</a>, control, output-&gt;<a class="code" href="struct_digital___output__t.html#ac7a7d7f3d154ec3152de97d06a7870f1">output</a> % 8U); <span class="comment">/* Update the register */</span></div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;}</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;<span class="comment">/*--------------------------------------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;<span class="comment">/* PRIVATE FUNCTIONS */</span></div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;<span class="comment">/*--------------------------------------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;</div>
<div class="line"><a name="l00177"></a><span class="lineno"><a class="line" href="group__digital__output.html#gaf266fa3481b0804611eb19719346b172">  177</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__digital__output.html#gaf266fa3481b0804611eb19719346b172">DigitalOutputsInit</a>(<span class="keywordtype">void</span>) {</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;    <span class="keywordflow">for</span> (uint_fast8_t i = 0; i &lt; NUM_DIGITAL_OUTPUTS; ++i) {</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;        InitializeOutput(&amp;Ext_DOutputs[i]);</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;    }</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;    <span class="comment">/*uint8_t data[NUMBER_TLE7232_CHIPS] = {0xFF, 0xFF};</span></div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;<span class="comment">    TLE7232_WriteRegisterAll(TLE7232_REG_CTL, data);*/</span></div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;}</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;</div>
<div class="line"><a name="l00192"></a><span class="lineno"><a class="line" href="group__digital__output.html#ga3310818e215cffd25126906b9215e46b">  192</a></span>&#160;<a class="code" href="group__tekdaqc__error.html#ga19df05d919ecca7a7501b35ae9080a32">Tekdaqc_Function_Error_t</a> <a class="code" href="group__digital__output.html#ga3310818e215cffd25126906b9215e46b">ListDigitalOutputs</a>(<span class="keywordtype">void</span>) {</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;    <a class="code" href="group__tekdaqc__error.html#ga19df05d919ecca7a7501b35ae9080a32">Tekdaqc_Function_Error_t</a> retval = <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32adbd1baeb84ff2e0675efec2cfb5d677f">ERR_FUNCTION_OK</a>;</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;    <a class="code" href="group__tekdaqc__configuration.html#ga7fee54fd2d4e5ad001547a64d519bdb1">ClearToStringBuffer</a>();</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;    uint8_t n = snprintf(TOSTRING_BUFFER, SIZE_TOSTRING_BUFFER, <span class="stringliteral">&quot;\n\r----------\n\rAdded Digital Outputs\n\r----------\n\r&quot;</span>);</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;    <span class="keywordflow">if</span> (n &lt;= 0) {</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;<span class="preprocessor">#ifdef DIGITALOUTPUT_DEBUG</span></div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;<span class="preprocessor"></span>        printf(<span class="stringliteral">&quot;Failed to write header of digital output list.\n\r&quot;</span>);</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;<span class="preprocessor"></span>        retval = <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32a647717acbbc83fc85a04b32e58a9c92a">ERR_DOUT_FAILED_WRITE</a>;</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;        <span class="keywordflow">if</span> (writer != 0) {</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;            writer(TOSTRING_BUFFER);</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;        }</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;        <a class="code" href="struct_digital___output__t.html">Digital_Output_t</a> output;</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;        <span class="keywordflow">for</span>(uint_fast8_t i = 0U; i &lt; NUM_DIGITAL_OUTPUTS; ++i) {</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;            output = Ext_DOutputs[i];</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;            <span class="keywordflow">if</span> (output.<a class="code" href="struct_digital___output__t.html#a6f1a4402ff8651dfc5e453b5e3154c2d">added</a> == <a class="code" href="group__board__channel__constants.html#ggab0f30599ceb99e5ba3b2908d8e9bd131aaee2b8395093e69408a16f6981d07fa9">CHANNEL_ADDED</a>) {</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;                <span class="comment">/* This input has been added */</span></div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;                n = snprintf(TOSTRING_BUFFER, SIZE_TOSTRING_BUFFER, <span class="stringliteral">&quot;\tPhysical Output %&quot;</span> PRIi8 <span class="stringliteral">&quot;:\n\r\t\tName: %s\n\r&quot;</span>, output.<a class="code" href="struct_digital___output__t.html#ac7a7d7f3d154ec3152de97d06a7870f1">output</a>, output.<a class="code" href="struct_digital___output__t.html#af161017167d4afb064b9c104877041e9">name</a>);</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;                <span class="keywordflow">if</span> (n &lt;= 0) {</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;<span class="preprocessor">#ifdef DIGITALOUTPUT_DEBUG</span></div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;<span class="preprocessor"></span>                    printf(<span class="stringliteral">&quot;Failed to write an digital output to the list.\n\r&quot;</span>);</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;<span class="preprocessor"></span>                    retval = <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32a647717acbbc83fc85a04b32e58a9c92a">ERR_DOUT_FAILED_WRITE</a>;</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;                    <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;                } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;                    <span class="keywordflow">if</span> (writer != 0) {</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;                        writer(TOSTRING_BUFFER);</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;                    }</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;                }</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;            }</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;        }</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;    }</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;    <span class="keywordflow">return</span> retval;</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;}</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;</div>
<div class="line"><a name="l00237"></a><span class="lineno"><a class="line" href="group__digital__output.html#gad98544b3d86d168290b487808e58142f">  237</a></span>&#160;<a class="code" href="group__tekdaqc__error.html#ga19df05d919ecca7a7501b35ae9080a32">Tekdaqc_Function_Error_t</a> <a class="code" href="group__digital__output.html#gad98544b3d86d168290b487808e58142f">CreateDigitalOutput</a>(<span class="keywordtype">char</span> keys[][<a class="code" href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a>], <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], <span class="keywordtype">int</span> count) {</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;    <a class="code" href="group__tekdaqc__error.html#ga19df05d919ecca7a7501b35ae9080a32">Tekdaqc_Function_Error_t</a> retval = <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32adbd1baeb84ff2e0675efec2cfb5d677f">ERR_FUNCTION_OK</a>;</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;    <span class="keywordtype">char</span>* param;</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;    <span class="keywordtype">char</span>* testPtr = NULL;</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;    int8_t index = -1;</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;    uint8_t output = <a class="code" href="group__analog__input__constants.html#gae3bad9f0257d0c7056e81f3257d2ec80">NULL_CHANNEL</a>; <span class="comment">/* The physical input */</span></div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;    uint8_t out = <a class="code" href="group__analog__input__constants.html#gae3bad9f0257d0c7056e81f3257d2ec80">NULL_CHANNEL</a>;</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;    <span class="keywordtype">char</span> name[<a class="code" href="group__digital__output.html#ga95c04964ce488ee74ca3f32a39a88cb7">MAX_DIGITAL_OUTPUT_NAME_LENGTH</a>]; <span class="comment">/* The name */</span></div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;    strcpy(name, <span class="stringliteral">&quot;NONE&quot;</span>);</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; <a class="code" href="group__command__interpreter.html#gadea8918a215685b1576f95e1fb754778">NUM_ADD_DIGITAL_OUTPUT_PARAMS</a>; ++i) {</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;        index = <a class="code" href="group__command__interpreter.html#ga40f7ab5c778b33671146878fe6bd8191">GetIndexOfArgument</a>(keys, <a class="code" href="group__command__interpreter.html#gaf583eedd117e9397b34163b0ed4791c3">ADD_DIGITAL_OUTPUT_PARAMS</a>[i], count);</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;        <span class="keywordflow">if</span> (index &gt;= 0) { <span class="comment">/* We found the key in the list */</span></div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;            param = values[index]; <span class="comment">/* We use the discovered index for this key */</span></div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;            <span class="keywordflow">switch</span> (i) { <span class="comment">/* Switch on the key not position in arguments list */</span></div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;            <span class="keywordflow">case</span> 0U: <span class="comment">/* OUTPUT key */</span></div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;                out = (uint8_t) strtol(param, &amp;testPtr, 10);</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;                <span class="keywordflow">if</span> (testPtr == param) {</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;                    retval = <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32afb0f8766c1df8e8a426d924bcfc4f307">ERR_DOUT_PARSE_ERROR</a>;</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;                } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;                    <span class="keywordflow">if</span> (out &gt;= 0U &amp;&amp; out &lt;= NUM_DIGITAL_OUTPUTS) {</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;                        <span class="comment">/* A valid output number */</span></div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;                        output = out;</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;                    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;                        <span class="comment">/* Input number out of range */</span></div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;<span class="preprocessor">#ifdef DIGITALOUTPUT_DEBUG</span></div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;<span class="preprocessor"></span>                        printf(<span class="stringliteral">&quot;[Digital Output] The requested output number is invalid.\n\r&quot;</span>);</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;<span class="preprocessor"></span>                        retval = <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32a8758a8b600c1e97bf2120d7b094853d6">ERR_DOUT_OUTPUT_OUTOFRANGE</a>;</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;                    }</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;                }</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;            <span class="keywordflow">case</span> 1U: <span class="comment">/* NAME key */</span></div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;                strcpy(name, param);</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;            <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;                <span class="comment">/* Return an error */</span></div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;                retval = <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32afb0f8766c1df8e8a426d924bcfc4f307">ERR_DOUT_PARSE_ERROR</a>;</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;            }</div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;        } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (i == 1U) {</div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;            <span class="comment">/* The NAME key is not strictly required, apply the defaults */</span></div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;            <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;            <span class="comment">/* Somehow an error happened */</span></div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;<span class="preprocessor">#ifdef DIGITALOUTPUT_DEBUG</span></div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;<span class="preprocessor"></span>            printf(<span class="stringliteral">&quot;[Digital Output] Unable to locate required key: %s\n\r&quot;</span>, <a class="code" href="group__command__interpreter.html#gaf583eedd117e9397b34163b0ed4791c3">ADD_DIGITAL_OUTPUT_PARAMS</a>[i]);</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;<span class="preprocessor"></span>            retval = <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32ace6d9a0db21ee0e4c19401983885ceb5">ERR_DOUT_PARSE_MISSING_KEY</a>; <span class="comment">/* Failed to locate a key */</span></div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;        }</div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;        <span class="keywordflow">if</span> (retval != <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32adbd1baeb84ff2e0675efec2cfb5d677f">ERR_FUNCTION_OK</a>) {</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;        }</div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;    }</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;    <span class="keywordflow">if</span> (retval == <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32adbd1baeb84ff2e0675efec2cfb5d677f">ERR_FUNCTION_OK</a>) {</div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;        <span class="keywordflow">if</span> (output != <a class="code" href="group__analog__input__constants.html#gae3bad9f0257d0c7056e81f3257d2ec80">NULL_CHANNEL</a>) {</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;            <a class="code" href="struct_digital___output__t.html">Digital_Output_t</a>* dig_output = <a class="code" href="group__digital__output.html#ga392c891d1dfd4610ea0e1ef67f76872b">GetDigitalOutputByNumber</a>(output);</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;            <span class="keywordflow">if</span> (dig_output != NULL) {</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;                <span class="keywordflow">if</span> (dig_output-&gt;<a class="code" href="struct_digital___output__t.html#a6f1a4402ff8651dfc5e453b5e3154c2d">added</a> != <a class="code" href="group__board__channel__constants.html#ggab0f30599ceb99e5ba3b2908d8e9bd131aaee2b8395093e69408a16f6981d07fa9">CHANNEL_ADDED</a>) {</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;                    dig_output-&gt;<a class="code" href="struct_digital___output__t.html#ac7a7d7f3d154ec3152de97d06a7870f1">output</a> = output;</div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;                    strcpy(dig_output-&gt;<a class="code" href="struct_digital___output__t.html#af161017167d4afb064b9c104877041e9">name</a>, name);</div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;                    dig_output-&gt;<a class="code" href="struct_digital___output__t.html#a077d2fbd9f466d58856071f5314b9c09">level</a> = <a class="code" href="group__board__channel__constants.html#ggaee574a0d48c41a3e5426ffbf8ac4c5c4ab4d04526d504d52286c0125def0faef4">LOGIC_LOW</a>;</div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;                    dig_output-&gt;<a class="code" href="struct_digital___output__t.html#a465bef81f6478756e5443025b1f2ddfa">timestamp</a> = 0U;</div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;                    retval = <a class="code" href="group__digital__output.html#gaeac54f24092eff564148db6cd346f153">AddDigitalOutput</a>(dig_output);</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;                } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;                    retval = <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32a520fcf3c938ea91074fa15aa6802bda2">ERR_DOUT_OUTPUT_EXISTS</a>;</div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;                }</div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;                <span class="comment">/* The output could not be found */</span></div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;                retval = <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32a479b09599d4e42281405cbe309eb3205">ERR_DOUT_OUTPUT_NOT_FOUND</a>;</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;            }</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;            <span class="comment">/* A valid input was never specified */</span></div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;            retval = <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32ad9259c255c285f14160be2c818aba367">ERR_DOUT_OUTPUT_UNSPECIFIED</a>;</div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;        }</div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;    }</div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;    <span class="keywordflow">return</span> retval;</div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;}</div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;</div>
<div class="line"><a name="l00320"></a><span class="lineno"><a class="line" href="group__digital__output.html#gaeac54f24092eff564148db6cd346f153">  320</a></span>&#160;<a class="code" href="group__tekdaqc__error.html#ga19df05d919ecca7a7501b35ae9080a32">Tekdaqc_Function_Error_t</a> <a class="code" href="group__digital__output.html#gaeac54f24092eff564148db6cd346f153">AddDigitalOutput</a>(<a class="code" href="struct_digital___output__t.html">Digital_Output_t</a>* output) {</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;    <a class="code" href="group__tekdaqc__error.html#ga19df05d919ecca7a7501b35ae9080a32">Tekdaqc_Function_Error_t</a> retval = <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32adbd1baeb84ff2e0675efec2cfb5d677f">ERR_FUNCTION_OK</a>;</div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;    uint8_t index = output-&gt;<a class="code" href="struct_digital___output__t.html#ac7a7d7f3d154ec3152de97d06a7870f1">output</a>;</div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;    <span class="keywordflow">if</span> (index &lt; NUM_DIGITAL_OUTPUTS) {</div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;        <span class="comment">/* This is a valid digital input */</span></div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;        output-&gt;<a class="code" href="struct_digital___output__t.html#a6f1a4402ff8651dfc5e453b5e3154c2d">added</a> = <a class="code" href="group__board__channel__constants.html#ggab0f30599ceb99e5ba3b2908d8e9bd131aaee2b8395093e69408a16f6981d07fa9">CHANNEL_ADDED</a>;</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;        SetDigitalOutputState(output, <a class="code" href="group__board__channel__constants.html#ggaee574a0d48c41a3e5426ffbf8ac4c5c4ab4d04526d504d52286c0125def0faef4">LOGIC_LOW</a>);</div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;        <span class="comment">/* This is out of range */</span></div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;<span class="preprocessor">#ifdef DIGITALOUTPUT_DEBUG</span></div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;<span class="preprocessor"></span>        printf(<span class="stringliteral">&quot;[Digital Output] Cannot add the provided digital output structure. Output field is out of range.\n\r&quot;</span>);</div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;<span class="preprocessor"></span>        retval = <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32a8758a8b600c1e97bf2120d7b094853d6">ERR_DOUT_OUTPUT_OUTOFRANGE</a>;</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;    }</div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;    <span class="keywordflow">return</span> retval;</div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;}</div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;</div>
<div class="line"><a name="l00345"></a><span class="lineno"><a class="line" href="group__digital__output.html#ga3ae9f85352ddfe3c29046f9d3b068d64">  345</a></span>&#160;<a class="code" href="group__tekdaqc__error.html#ga19df05d919ecca7a7501b35ae9080a32">Tekdaqc_Function_Error_t</a> <a class="code" href="group__digital__output.html#ga3ae9f85352ddfe3c29046f9d3b068d64">RemoveDigitalOutput</a>(<span class="keywordtype">char</span> keys[][<a class="code" href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a>], <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], <span class="keywordtype">int</span> count) {</div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;    <a class="code" href="group__tekdaqc__error.html#ga19df05d919ecca7a7501b35ae9080a32">Tekdaqc_Function_Error_t</a> retval = <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32adbd1baeb84ff2e0675efec2cfb5d677f">ERR_FUNCTION_OK</a>;</div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;    <span class="keywordtype">char</span>* param;</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;    int8_t index = -1;</div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;    <span class="keywordflow">for</span> (uint_fast8_t i = 0U; i &lt; <a class="code" href="group__command__interpreter.html#gaab1534ae5702e990bfdc0f8c85094df0">NUM_REMOVE_DIGITAL_OUTPUT_PARAMS</a>; ++i) {</div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;        index = <a class="code" href="group__command__interpreter.html#ga40f7ab5c778b33671146878fe6bd8191">GetIndexOfArgument</a>(keys, <a class="code" href="group__command__interpreter.html#gab8e88e0e75930f03474e1ff9e232ef63">REMOVE_DIGITAL_OUTPUT_PARAMS</a>[i], count);</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;        <span class="keywordflow">if</span> (index &gt;= 0) { <span class="comment">//We found the key in the list</span></div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;            param = values[index]; <span class="comment">//We use the discovered index for this key</span></div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;            <span class="keywordflow">switch</span> (i) { <span class="comment">//Switch on the key not position in arguments list</span></div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;            <span class="keywordflow">case</span> 0U: { <span class="comment">//OUTPUT key</span></div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;                <span class="keywordtype">char</span>* testPtr = NULL;</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;                uint8_t out = (uint8_t) strtol(param, &amp;testPtr, 10);</div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;                <span class="keywordflow">if</span> (testPtr == param) {</div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;                    retval = <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32afb0f8766c1df8e8a426d924bcfc4f307">ERR_DOUT_PARSE_ERROR</a>;</div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;                } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;                    <span class="keywordflow">if</span> (isExternalOutput(out)) {</div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;                        <span class="comment">/* A valid input number */</span></div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;                        RemoveDigitalOutputByID(out);</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;                    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;                        <span class="comment">/* Input number out of range */</span></div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;<span class="preprocessor">#ifdef DIGITALOUTPUT_DEBUG</span></div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;<span class="preprocessor"></span>                        printf(<span class="stringliteral">&quot;[Digital Output] The requested input number is invalid.\n\r&quot;</span>);</div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;<span class="preprocessor"></span>                        retval = <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32a8758a8b600c1e97bf2120d7b094853d6">ERR_DOUT_OUTPUT_OUTOFRANGE</a>;</div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;                    }</div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;                }</div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;            }</div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;            <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;                <span class="comment">/* Return an error */</span></div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;                retval = <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32afb0f8766c1df8e8a426d924bcfc4f307">ERR_DOUT_PARSE_ERROR</a>;</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;            }</div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;            <span class="comment">/* Somehow an error happened */</span></div>
<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;<span class="preprocessor">#ifdef DIGITALINPUT_DEBUG</span></div>
<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;<span class="preprocessor"></span>            printf(<span class="stringliteral">&quot;[Digital Output] Unable to locate required key: %s\n\r&quot;</span>, <a class="code" href="group__command__interpreter.html#gab8e88e0e75930f03474e1ff9e232ef63">REMOVE_DIGITAL_OUTPUT_PARAMS</a>[i]);</div>
<div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;<span class="preprocessor"></span>            retval = <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32ace6d9a0db21ee0e4c19401983885ceb5">ERR_DOUT_PARSE_MISSING_KEY</a>; <span class="comment">/* Failed to locate a key */</span></div>
<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;        }</div>
<div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;    }</div>
<div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;    <span class="keywordflow">return</span> retval;</div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;}</div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;</div>
<div class="line"><a name="l00394"></a><span class="lineno"><a class="line" href="group__digital__output.html#ga392c891d1dfd4610ea0e1ef67f76872b">  394</a></span>&#160;<a class="code" href="struct_digital___output__t.html">Digital_Output_t</a>* <a class="code" href="group__digital__output.html#ga392c891d1dfd4610ea0e1ef67f76872b">GetDigitalOutputByNumber</a>(uint8_t number) {</div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;    <span class="keywordflow">if</span> (isExternalOutput(number)) {</div>
<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;        <span class="keywordflow">return</span> &amp;Ext_DOutputs[number];</div>
<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;        <span class="comment">/* This is out of range */</span></div>
<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;<span class="preprocessor">#ifdef DIGITALOUTPUT_DEBUG</span></div>
<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;<span class="preprocessor"></span>        printf(<span class="stringliteral">&quot;[Digital Output] Cannot find the requested digital output. Output does not exist on the board.\n\r&quot;</span>);</div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;<span class="preprocessor"></span>        <span class="keywordflow">return</span> NULL;</div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;    }</div>
<div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;}</div>
<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;</div>
<div class="line"><a name="l00406"></a><span class="lineno"><a class="line" href="group__digital__output.html#ga7f6d7f4a8ed42dfa380728cad94dbc28">  406</a></span>&#160;<a class="code" href="group__tekdaqc__error.html#ga19df05d919ecca7a7501b35ae9080a32">Tekdaqc_Function_Error_t</a> <a class="code" href="group__digital__output.html#ga7f6d7f4a8ed42dfa380728cad94dbc28">SetDigitalOutput</a>(<span class="keywordtype">char</span> keys[][<a class="code" href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a>], <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count) {</div>
<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;    <a class="code" href="group__tekdaqc__error.html#ga19df05d919ecca7a7501b35ae9080a32">Tekdaqc_Function_Error_t</a> retval = <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32adbd1baeb84ff2e0675efec2cfb5d677f">ERR_FUNCTION_OK</a>;</div>
<div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;    <span class="keywordtype">char</span>* param;</div>
<div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;    int8_t index = -1;</div>
<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;    uint8_t output = <a class="code" href="group__analog__input__constants.html#gae3bad9f0257d0c7056e81f3257d2ec80">NULL_CHANNEL</a>; <span class="comment">/* The physical input */</span></div>
<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;    <a class="code" href="group__board__channel__constants.html#gaee574a0d48c41a3e5426ffbf8ac4c5c4">DigitalLevel_t</a> level = <a class="code" href="group__digital__output.html#ga514fc5ac6ead9d3aee8ae8fc8188a1d3">OUTPUT_OFF</a>;</div>
<div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; <a class="code" href="group__command__interpreter.html#gaac55dd13b66c6ed14773e930596be11e">NUM_SET_DIGITAL_OUTPUT_PARAMS</a>; ++i) {</div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;        index = <a class="code" href="group__command__interpreter.html#ga40f7ab5c778b33671146878fe6bd8191">GetIndexOfArgument</a>(keys, <a class="code" href="group__command__interpreter.html#gade511743b3ecf569a2e74c1b14291a5b">SET_DIGITAL_OUTPUT_PARAMS</a>[i], count);</div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;        <span class="keywordflow">if</span> (index &gt;= 0) { <span class="comment">/* We found the key in the list */</span></div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;            param = values[index]; <span class="comment">/* We use the discovered index for this key */</span></div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;            <span class="keywordflow">switch</span> (i) { <span class="comment">/* Switch on the key not position in arguments list */</span></div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;            <span class="keywordflow">case</span> 0: { <span class="comment">/* OUTPUT key */</span></div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;                <span class="keywordtype">char</span>* testPtr = NULL;</div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;                uint8_t out = (uint8_t) strtol(param, &amp;testPtr, 10);</div>
<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;                <span class="keywordflow">if</span> (testPtr == param) {</div>
<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;                    retval = <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32afb0f8766c1df8e8a426d924bcfc4f307">ERR_DOUT_PARSE_ERROR</a>;</div>
<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;                } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;                    <span class="keywordflow">if</span> (out &gt;= 0U &amp;&amp; out &lt;= NUM_DIGITAL_OUTPUTS) {</div>
<div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;                        <span class="comment">/* A valid input number */</span></div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;                        output = out;</div>
<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;                    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;                        <span class="comment">/* Input number out of range */</span></div>
<div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;<span class="preprocessor">#ifdef DIGITALOUTPUT_DEBUG</span></div>
<div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;<span class="preprocessor"></span>                        printf(<span class="stringliteral">&quot;[Digital Output] The requested output number is invalid.\n\r&quot;</span>);</div>
<div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;<span class="preprocessor"></span>                        retval = <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32a8758a8b600c1e97bf2120d7b094853d6">ERR_DOUT_OUTPUT_OUTOFRANGE</a>;</div>
<div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;                    }</div>
<div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;                }</div>
<div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;            }</div>
<div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;            <span class="keywordflow">case</span> 1: <span class="comment">/* STATE key */</span></div>
<div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160;                <span class="keywordflow">if</span> (strcmp(param, <span class="stringliteral">&quot;ON&quot;</span>) == 0) {</div>
<div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;                    level = <a class="code" href="group__digital__output.html#ga43583966bde63db2887f604cf5787741">OUTPUT_ON</a>;</div>
<div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;                } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;                    level = <a class="code" href="group__digital__output.html#ga514fc5ac6ead9d3aee8ae8fc8188a1d3">OUTPUT_OFF</a>;</div>
<div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;                }</div>
<div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;            <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;                <span class="comment">/* Return an error */</span></div>
<div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;                retval = <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32afb0f8766c1df8e8a426d924bcfc4f307">ERR_DOUT_PARSE_ERROR</a>;</div>
<div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;            }</div>
<div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;<span class="preprocessor">#ifdef DIGITALOUTPUT_DEBUG</span></div>
<div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;<span class="preprocessor"></span>            printf(<span class="stringliteral">&quot;[Digital Output] Unable to locate required key: %s\n\r&quot;</span>, <a class="code" href="group__command__interpreter.html#gade511743b3ecf569a2e74c1b14291a5b">SET_DIGITAL_OUTPUT_PARAMS</a>[i]);</div>
<div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160;<span class="preprocessor"></span>            retval = <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32ace6d9a0db21ee0e4c19401983885ceb5">ERR_DOUT_PARSE_MISSING_KEY</a>; <span class="comment">/* Failed to locate a key */</span></div>
<div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160;        }</div>
<div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160;        <span class="keywordflow">if</span> (retval != <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32adbd1baeb84ff2e0675efec2cfb5d677f">ERR_FUNCTION_OK</a>) {</div>
<div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;        }</div>
<div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;    }</div>
<div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;    <span class="keywordflow">if</span> (retval == <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32adbd1baeb84ff2e0675efec2cfb5d677f">ERR_FUNCTION_OK</a>) {</div>
<div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;        <span class="keywordflow">if</span> (output != <a class="code" href="group__analog__input__constants.html#gae3bad9f0257d0c7056e81f3257d2ec80">NULL_CHANNEL</a>) {</div>
<div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;            <a class="code" href="struct_digital___output__t.html">Digital_Output_t</a>* dig_output = <a class="code" href="group__digital__output.html#ga392c891d1dfd4610ea0e1ef67f76872b">GetDigitalOutputByNumber</a>(output);</div>
<div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160;            <span class="keywordflow">if</span> (dig_output != NULL) {</div>
<div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;                <span class="keywordflow">if</span> (dig_output-&gt;<a class="code" href="struct_digital___output__t.html#a6f1a4402ff8651dfc5e453b5e3154c2d">added</a> == <a class="code" href="group__board__channel__constants.html#ggab0f30599ceb99e5ba3b2908d8e9bd131aaee2b8395093e69408a16f6981d07fa9">CHANNEL_ADDED</a>) {</div>
<div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160;                    SetDigitalOutputState(dig_output, level);</div>
<div class="line"><a name="l00463"></a><span class="lineno">  463</span>&#160;                } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;<span class="preprocessor">#ifdef DIGITALOUTPUT_DEBUG</span></div>
<div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;<span class="preprocessor"></span>                    printf(<span class="stringliteral">&quot;[Digital Output] Tried to change the state of an output which has not been added.\n\r&quot;</span>);</div>
<div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;<span class="preprocessor"></span>                    retval = <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32ab7463197737e0940ba45390cf1a51083">ERR_DOUT_DOES_NOT_EXIST</a>;</div>
<div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;                }</div>
<div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;                <span class="comment">/* The output could not be found */</span></div>
<div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160;                retval = <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32a479b09599d4e42281405cbe309eb3205">ERR_DOUT_OUTPUT_NOT_FOUND</a>;</div>
<div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;            }</div>
<div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;            <span class="comment">/* A valid input was never specified */</span></div>
<div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160;            retval = <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32ad9259c255c285f14160be2c818aba367">ERR_DOUT_OUTPUT_UNSPECIFIED</a>;</div>
<div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160;        }</div>
<div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160;    }</div>
<div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;    <span class="keywordflow">return</span> retval;</div>
<div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;}</div>
<div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;</div>
<div class="line"><a name="l00487"></a><span class="lineno"><a class="line" href="group__digital__output.html#ga3853c412989dc241c2c9157e5102673b">  487</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__digital__output.html#ga3853c412989dc241c2c9157e5102673b">SetDigitalOutputWriteFunction</a>(<a class="code" href="group__tekdaqc__configuration.html#ga163b2a4cc55a569e988df48908631967">WriteFunction</a> writeFunction) {</div>
<div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160;    writer = writeFunction;</div>
<div class="line"><a name="l00489"></a><span class="lineno">  489</span>&#160;}</div>
<div class="line"><a name="l00490"></a><span class="lineno">  490</span>&#160;</div>
<div class="line"><a name="l00497"></a><span class="lineno"><a class="line" href="group__digital__output.html#ga51fe681dd6e8e9f84a03b8c71af0b71d">  497</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__digital__output.html#ga51fe681dd6e8e9f84a03b8c71af0b71d">SampleDigitalOutput</a>(<a class="code" href="struct_digital___output__t.html">Digital_Output_t</a>* output) {</div>
<div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160;    <span class="comment">//TODO: Sample digital output</span></div>
<div class="line"><a name="l00499"></a><span class="lineno">  499</span>&#160;}</div>
<div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160;</div>
<div class="line"><a name="l00507"></a><span class="lineno"><a class="line" href="group__digital__output.html#gacc8cec336fbe7c0aae9dcca1914f7882">  507</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__digital__output.html#gacc8cec336fbe7c0aae9dcca1914f7882">SampleAllDigitalOutputs</a>(<span class="keywordtype">void</span>) {</div>
<div class="line"><a name="l00508"></a><span class="lineno">  508</span>&#160;    <a class="code" href="struct_digital___output__t.html">Digital_Output_t</a> output;</div>
<div class="line"><a name="l00509"></a><span class="lineno">  509</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; NUM_DIGITAL_OUTPUTS; ++i) {</div>
<div class="line"><a name="l00510"></a><span class="lineno">  510</span>&#160;        output = Ext_DOutputs[i];</div>
<div class="line"><a name="l00511"></a><span class="lineno">  511</span>&#160;        <span class="keywordflow">if</span> (output.<a class="code" href="struct_digital___output__t.html#a6f1a4402ff8651dfc5e453b5e3154c2d">added</a> == <a class="code" href="group__board__channel__constants.html#ggab0f30599ceb99e5ba3b2908d8e9bd131aaee2b8395093e69408a16f6981d07fa9">CHANNEL_ADDED</a>) {</div>
<div class="line"><a name="l00512"></a><span class="lineno">  512</span>&#160;            <a class="code" href="group__digital__output.html#ga51fe681dd6e8e9f84a03b8c71af0b71d">SampleDigitalOutput</a>(&amp;output);</div>
<div class="line"><a name="l00513"></a><span class="lineno">  513</span>&#160;        }</div>
<div class="line"><a name="l00514"></a><span class="lineno">  514</span>&#160;    }</div>
<div class="line"><a name="l00515"></a><span class="lineno">  515</span>&#160;}</div>
<div class="line"><a name="l00516"></a><span class="lineno">  516</span>&#160;</div>
<div class="line"><a name="l00523"></a><span class="lineno"><a class="line" href="group__digital__output.html#gaa10fe33be14ef4d8e16e6345f57938c5">  523</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__digital__output.html#gaa10fe33be14ef4d8e16e6345f57938c5">WriteDigitalOutput</a>(<a class="code" href="struct_digital___output__t.html">Digital_Output_t</a>* output) {</div>
<div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160;    uint8_t retval = sprintf(TOSTRING_BUFFER, <a class="code" href="_digital___output_8c.html#a60b907b7e51c1a4d6ba6be07f3237179">DIGITAL_OUTPUT_FORMATTER</a>, output-&gt;<a class="code" href="struct_digital___output__t.html#af161017167d4afb064b9c104877041e9">name</a>, output-&gt;<a class="code" href="struct_digital___output__t.html#ac7a7d7f3d154ec3152de97d06a7870f1">output</a>, output-&gt;<a class="code" href="struct_digital___output__t.html#a465bef81f6478756e5443025b1f2ddfa">timestamp</a>,</div>
<div class="line"><a name="l00525"></a><span class="lineno">  525</span>&#160;            <a class="code" href="group__tekdaqc__configuration.html#ga5aeffa7a603f954a637f967f37c29ec6">DigitalLevelToString</a>(output-&gt;<a class="code" href="struct_digital___output__t.html#a077d2fbd9f466d58856071f5314b9c09">level</a>));</div>
<div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160;    <span class="keywordflow">if</span> (retval &gt;= 0) {</div>
<div class="line"><a name="l00527"></a><span class="lineno">  527</span>&#160;        <span class="keywordflow">if</span> (writer != NULL ) {</div>
<div class="line"><a name="l00528"></a><span class="lineno">  528</span>&#160;            writer(TOSTRING_BUFFER);</div>
<div class="line"><a name="l00529"></a><span class="lineno">  529</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00530"></a><span class="lineno">  530</span>&#160;<span class="preprocessor">#ifdef DIGITALOUTPUT_DEBUG</span></div>
<div class="line"><a name="l00531"></a><span class="lineno">  531</span>&#160;<span class="preprocessor"></span>            printf(<span class="stringliteral">&quot;[Digital Output] Cannot write digital output to string due to NULL write function.\n\r&quot;</span>);</div>
<div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;<span class="preprocessor"></span>        }</div>
<div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00535"></a><span class="lineno">  535</span>&#160;<span class="preprocessor">#ifdef DIGITALOUTPUT_DEBUG</span></div>
<div class="line"><a name="l00536"></a><span class="lineno">  536</span>&#160;<span class="preprocessor"></span>        printf(<span class="stringliteral">&quot;[Digital Output] Error occurred while writing digital output to string.\n\r&quot;</span>);</div>
<div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00538"></a><span class="lineno">  538</span>&#160;<span class="preprocessor"></span>    }</div>
<div class="line"><a name="l00539"></a><span class="lineno">  539</span>&#160;}</div>
<div class="line"><a name="l00540"></a><span class="lineno">  540</span>&#160;</div>
<div class="line"><a name="l00547"></a><span class="lineno"><a class="line" href="group__digital__output.html#ga1198a3ce0740a6ba43f5325d3ba9f950">  547</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__digital__output.html#ga1198a3ce0740a6ba43f5325d3ba9f950">WriteAllDigitalOutputs</a>(<span class="keywordtype">void</span>) {</div>
<div class="line"><a name="l00548"></a><span class="lineno">  548</span>&#160;    <span class="keywordflow">if</span> (writer != NULL ) {</div>
<div class="line"><a name="l00549"></a><span class="lineno">  549</span>&#160;        <a class="code" href="struct_digital___output__t.html">Digital_Output_t</a> output;</div>
<div class="line"><a name="l00550"></a><span class="lineno">  550</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; NUM_DIGITAL_OUTPUTS; ++i) {</div>
<div class="line"><a name="l00551"></a><span class="lineno">  551</span>&#160;            output = Ext_DOutputs[i];</div>
<div class="line"><a name="l00552"></a><span class="lineno">  552</span>&#160;            <span class="keywordflow">if</span> (output.<a class="code" href="struct_digital___output__t.html#a6f1a4402ff8651dfc5e453b5e3154c2d">added</a> == <a class="code" href="group__board__channel__constants.html#ggab0f30599ceb99e5ba3b2908d8e9bd131aaee2b8395093e69408a16f6981d07fa9">CHANNEL_ADDED</a>) {</div>
<div class="line"><a name="l00553"></a><span class="lineno">  553</span>&#160;                <a class="code" href="group__digital__output.html#gaa10fe33be14ef4d8e16e6345f57938c5">WriteDigitalOutput</a>(&amp;output);</div>
<div class="line"><a name="l00554"></a><span class="lineno">  554</span>&#160;            }</div>
<div class="line"><a name="l00555"></a><span class="lineno">  555</span>&#160;        }</div>
<div class="line"><a name="l00556"></a><span class="lineno">  556</span>&#160;    }</div>
<div class="line"><a name="l00557"></a><span class="lineno">  557</span>&#160;}</div>
<div class="line"><a name="l00558"></a><span class="lineno">  558</span>&#160;</div>
<div class="line"><a name="l00565"></a><span class="lineno"><a class="line" href="group__digital__output.html#ga5178a212748e618e157767d96991b0b8">  565</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="group__digital__output.html#ga5178a212748e618e157767d96991b0b8">CheckDigitalOutputStatus</a>(<span class="keywordtype">void</span>) {</div>
<div class="line"><a name="l00566"></a><span class="lineno">  566</span>&#160;    <span class="keywordtype">bool</span> retval = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00567"></a><span class="lineno">  567</span>&#160;    <a class="code" href="group__tle7232__driver.html#gadefac9d800f68f872c6c8c4d5b3379cd">TLE7232_ReadAllDiagnosis</a>();</div>
<div class="line"><a name="l00568"></a><span class="lineno">  568</span>&#160;    <a class="code" href="struct_digital___output__t.html">Digital_Output_t</a> output;</div>
<div class="line"><a name="l00569"></a><span class="lineno">  569</span>&#160;    <span class="keywordflow">for</span> (uint_fast8_t i = 0U; i &lt; NUM_DIGITAL_OUTPUTS; ++i) {</div>
<div class="line"><a name="l00570"></a><span class="lineno">  570</span>&#160;        output = Ext_DOutputs[i];</div>
<div class="line"><a name="l00571"></a><span class="lineno">  571</span>&#160;        <span class="keywordflow">if</span> ((output.<a class="code" href="struct_digital___output__t.html#a6f1a4402ff8651dfc5e453b5e3154c2d">added</a> == <a class="code" href="group__board__channel__constants.html#ggab0f30599ceb99e5ba3b2908d8e9bd131aaee2b8395093e69408a16f6981d07fa9">CHANNEL_ADDED</a>) &amp;&amp; (output.<a class="code" href="struct_digital___output__t.html#a13ee06338665fcdab36b11e8c7b7df0e">fault_status</a> != <a class="code" href="group__tle7232__driver.html#gga84bb3f68b575c6add1c27f053b87746aa41ad46c089b8040e5c8fe85befa75589">TLE7232_Normal_Operation</a>)) {</div>
<div class="line"><a name="l00572"></a><span class="lineno">  572</span>&#160;            <span class="comment">/* A fault has occurred on this channel */</span></div>
<div class="line"><a name="l00573"></a><span class="lineno">  573</span>&#160;            retval = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00574"></a><span class="lineno">  574</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00575"></a><span class="lineno">  575</span>&#160;        }</div>
<div class="line"><a name="l00576"></a><span class="lineno">  576</span>&#160;    }</div>
<div class="line"><a name="l00577"></a><span class="lineno">  577</span>&#160;    <span class="keywordflow">return</span> retval;</div>
<div class="line"><a name="l00578"></a><span class="lineno">  578</span>&#160;}</div>
<div class="line"><a name="l00579"></a><span class="lineno">  579</span>&#160;</div>
<div class="line"><a name="l00587"></a><span class="lineno"><a class="line" href="group__digital__output.html#gae27ad2dffb82e46632339521c3cfd6ee">  587</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="group__digital__output.html#gae27ad2dffb82e46632339521c3cfd6ee">SetDigitalOutputFaultStatus</a>(<a class="code" href="group__tle7232__driver.html#ga84bb3f68b575c6add1c27f053b87746a">TLE7232_Status_t</a> status, uint8_t chip_id, uint8_t channel) {</div>
<div class="line"><a name="l00588"></a><span class="lineno">  588</span>&#160;    <span class="keywordtype">bool</span> retval = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00589"></a><span class="lineno">  589</span>&#160;    uint8_t out = channel * (chip_id + 1);</div>
<div class="line"><a name="l00590"></a><span class="lineno">  590</span>&#160;    <span class="keywordflow">if</span> (out &lt; NUM_DIGITAL_OUTPUTS) {</div>
<div class="line"><a name="l00591"></a><span class="lineno">  591</span>&#160;        Ext_DOutputs[out].<a class="code" href="struct_digital___output__t.html#a13ee06338665fcdab36b11e8c7b7df0e">fault_status</a> = status;</div>
<div class="line"><a name="l00592"></a><span class="lineno">  592</span>&#160;        Ext_DOutputs[out].<a class="code" href="struct_digital___output__t.html#ada3dca6ca3d8c61b00b0a2a65055c21e">fault_timestamp</a> = <a class="code" href="group__tekdaqc__timers.html#ga11a66b1728633b77403a588f66a1be95">GetLocalTime</a>();</div>
<div class="line"><a name="l00593"></a><span class="lineno">  593</span>&#160;        retval = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00594"></a><span class="lineno">  594</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00595"></a><span class="lineno">  595</span>&#160;<span class="preprocessor">#ifdef DIGITALINPUT_DEBUG</span></div>
<div class="line"><a name="l00596"></a><span class="lineno">  596</span>&#160;<span class="preprocessor"></span>        printf(<span class="stringliteral">&quot;Tried to set the fault status of a digital output which is out of range.\n\r&quot;</span>);</div>
<div class="line"><a name="l00597"></a><span class="lineno">  597</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00598"></a><span class="lineno">  598</span>&#160;<span class="preprocessor"></span>        retval = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00599"></a><span class="lineno">  599</span>&#160;    }</div>
<div class="line"><a name="l00600"></a><span class="lineno">  600</span>&#160;    <span class="keywordflow">return</span> retval;</div>
<div class="line"><a name="l00601"></a><span class="lineno">  601</span>&#160;}</div>
<div class="ttc" id="boolean_8h_html"><div class="ttname"><a href="boolean_8h.html">boolean.h</a></div><div class="ttdoc">Header file for the custom boolean data type. </div></div>
<div class="ttc" id="group__command__interpreter_html_ga40f7ab5c778b33671146878fe6bd8191"><div class="ttname"><a href="group__command__interpreter.html#ga40f7ab5c778b33671146878fe6bd8191">GetIndexOfArgument</a></div><div class="ttdeci">int8_t GetIndexOfArgument(char keys[][MAX_COMMANDPART_LENGTH], const char *target, uint8_t total)</div><div class="ttdoc">Gets the index of the specified argument from the list of parameters. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l02190">Tekdaqc_CommandInterpreter.c:2190</a></div></div>
<div class="ttc" id="struct_digital___output__t_html_a13ee06338665fcdab36b11e8c7b7df0e"><div class="ttname"><a href="struct_digital___output__t.html#a13ee06338665fcdab36b11e8c7b7df0e">Digital_Output_t::fault_status</a></div><div class="ttdeci">TLE7232_Status_t fault_status</div><div class="ttdef"><b>Definition:</b> <a href="_digital___output_8h_source.html#l00094">Digital_Output.h:94</a></div></div>
<div class="ttc" id="_digital___output_8h_html"><div class="ttname"><a href="_digital___output_8h.html">Digital_Output.h</a></div><div class="ttdoc">Header file for the Digital_Output_t data structure. </div></div>
<div class="ttc" id="group__digital__output_html_gacc8cec336fbe7c0aae9dcca1914f7882"><div class="ttname"><a href="group__digital__output.html#gacc8cec336fbe7c0aae9dcca1914f7882">SampleAllDigitalOutputs</a></div><div class="ttdeci">void SampleAllDigitalOutputs(void)</div><div class="ttdoc">Samples the digital output level of all added digital outputs, writing out the results. </div><div class="ttdef"><b>Definition:</b> <a href="_digital___output_8c_source.html#l00507">Digital_Output.c:507</a></div></div>
<div class="ttc" id="struct_digital___output__t_html_ada3dca6ca3d8c61b00b0a2a65055c21e"><div class="ttname"><a href="struct_digital___output__t.html#ada3dca6ca3d8c61b00b0a2a65055c21e">Digital_Output_t::fault_timestamp</a></div><div class="ttdeci">uint64_t fault_timestamp</div><div class="ttdef"><b>Definition:</b> <a href="_digital___output_8h_source.html#l00093">Digital_Output.h:93</a></div></div>
<div class="ttc" id="struct_digital___output__t_html_a465bef81f6478756e5443025b1f2ddfa"><div class="ttname"><a href="struct_digital___output__t.html#a465bef81f6478756e5443025b1f2ddfa">Digital_Output_t::timestamp</a></div><div class="ttdeci">uint64_t timestamp</div><div class="ttdef"><b>Definition:</b> <a href="_digital___output_8h_source.html#l00092">Digital_Output.h:92</a></div></div>
<div class="ttc" id="group__digital__output_html_ga3310818e215cffd25126906b9215e46b"><div class="ttname"><a href="group__digital__output.html#ga3310818e215cffd25126906b9215e46b">ListDigitalOutputs</a></div><div class="ttdeci">Tekdaqc_Function_Error_t ListDigitalOutputs(void)</div><div class="ttdoc">Prints a representation of all the added digital outputs. </div><div class="ttdef"><b>Definition:</b> <a href="_digital___output_8c_source.html#l00192">Digital_Output.c:192</a></div></div>
<div class="ttc" id="group__tekdaqc__error_html_gga19df05d919ecca7a7501b35ae9080a32adbd1baeb84ff2e0675efec2cfb5d677f"><div class="ttname"><a href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32adbd1baeb84ff2e0675efec2cfb5d677f">ERR_FUNCTION_OK</a></div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___error_8h_source.html#l00074">Tekdaqc_Error.h:74</a></div></div>
<div class="ttc" id="group__digital__output_html_ga5178a212748e618e157767d96991b0b8"><div class="ttname"><a href="group__digital__output.html#ga5178a212748e618e157767d96991b0b8">CheckDigitalOutputStatus</a></div><div class="ttdeci">bool CheckDigitalOutputStatus(void)</div><div class="ttdoc">Checks the stored status register contents for any errors. </div><div class="ttdef"><b>Definition:</b> <a href="_digital___output_8c_source.html#l00565">Digital_Output.c:565</a></div></div>
<div class="ttc" id="group__command__interpreter_html_gadea8918a215685b1576f95e1fb754778"><div class="ttname"><a href="group__command__interpreter.html#gadea8918a215685b1576f95e1fb754778">NUM_ADD_DIGITAL_OUTPUT_PARAMS</a></div><div class="ttdeci">#define NUM_ADD_DIGITAL_OUTPUT_PARAMS</div><div class="ttdoc">The number of parameters for the ADD_DIGITAL_OUTPUT command. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00302">Tekdaqc_CommandInterpreter.h:302</a></div></div>
<div class="ttc" id="group__digital__output_html_gad98544b3d86d168290b487808e58142f"><div class="ttname"><a href="group__digital__output.html#gad98544b3d86d168290b487808e58142f">CreateDigitalOutput</a></div><div class="ttdeci">Tekdaqc_Function_Error_t CreateDigitalOutput(char keys[][MAX_COMMANDPART_LENGTH], char values[][MAX_COMMANDPART_LENGTH], int count)</div><div class="ttdoc">Configures a digital output with the specified parameters. </div><div class="ttdef"><b>Definition:</b> <a href="_digital___output_8c_source.html#l00237">Digital_Output.c:237</a></div></div>
<div class="ttc" id="group__tekdaqc__error_html_ga19df05d919ecca7a7501b35ae9080a32"><div class="ttname"><a href="group__tekdaqc__error.html#ga19df05d919ecca7a7501b35ae9080a32">Tekdaqc_Function_Error_t</a></div><div class="ttdeci">Tekdaqc_Function_Error_t</div><div class="ttdoc">Tekdaqc Command sub-function error enumeration. Defines the possible error codes returned by sub-func...</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___error_8h_source.html#l00073">Tekdaqc_Error.h:73</a></div></div>
<div class="ttc" id="group__digital__output_html_ga1198a3ce0740a6ba43f5325d3ba9f950"><div class="ttname"><a href="group__digital__output.html#ga1198a3ce0740a6ba43f5325d3ba9f950">WriteAllDigitalOutputs</a></div><div class="ttdeci">void WriteAllDigitalOutputs(void)</div><div class="ttdoc">Writes out the data for all added digital outputs. </div><div class="ttdef"><b>Definition:</b> <a href="_digital___output_8c_source.html#l00547">Digital_Output.c:547</a></div></div>
<div class="ttc" id="group__digital__output_html_gaeac54f24092eff564148db6cd346f153"><div class="ttname"><a href="group__digital__output.html#gaeac54f24092eff564148db6cd346f153">AddDigitalOutput</a></div><div class="ttdeci">Tekdaqc_Function_Error_t AddDigitalOutput(Digital_Output_t *output)</div><div class="ttdoc">Adds a digital output, marking it for inclusion in the state machine. </div><div class="ttdef"><b>Definition:</b> <a href="_digital___output_8c_source.html#l00320">Digital_Output.c:320</a></div></div>
<div class="ttc" id="group__tle7232__driver_html_gabf56c66110adfb8658cff9c2f6fc5cd6"><div class="ttname"><a href="group__tle7232__driver.html#gabf56c66110adfb8658cff9c2f6fc5cd6">TLE7232_WriteRegister</a></div><div class="ttdeci">void TLE7232_WriteRegister(TLE7232_Register_t reg, uint8_t data, uint8_t chip_index)</div><div class="ttdoc">Write the specified data to the specified register of a device. </div><div class="ttdef"><b>Definition:</b> <a href="_t_l_e7232___relay_driver_8c_source.html#l00382">TLE7232_RelayDriver.c:382</a></div></div>
<div class="ttc" id="group__tekdaqc__configuration_html_ga7fee54fd2d4e5ad001547a64d519bdb1"><div class="ttname"><a href="group__tekdaqc__configuration.html#ga7fee54fd2d4e5ad001547a64d519bdb1">ClearToStringBuffer</a></div><div class="ttdeci">void ClearToStringBuffer(void)</div><div class="ttdoc">Clears the global TOSTRING_BUFFER data structure. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___config_8c_source.html#l00310">Tekdaqc_Config.c:310</a></div></div>
<div class="ttc" id="group__digital__output_html_ga95c04964ce488ee74ca3f32a39a88cb7"><div class="ttname"><a href="group__digital__output.html#ga95c04964ce488ee74ca3f32a39a88cb7">MAX_DIGITAL_OUTPUT_NAME_LENGTH</a></div><div class="ttdeci">#define MAX_DIGITAL_OUTPUT_NAME_LENGTH</div><div class="ttdoc">The maximum number of characters for the name of an digital output. </div><div class="ttdef"><b>Definition:</b> <a href="_digital___output_8h_source.html#l00060">Digital_Output.h:60</a></div></div>
<div class="ttc" id="group__digital__output_html_ga514fc5ac6ead9d3aee8ae8fc8188a1d3"><div class="ttname"><a href="group__digital__output.html#ga514fc5ac6ead9d3aee8ae8fc8188a1d3">OUTPUT_OFF</a></div><div class="ttdeci">#define OUTPUT_OFF</div><div class="ttdoc">Redefinition of the LOGIC_HIGH definition. Used as a code readability convenience. </div><div class="ttdef"><b>Definition:</b> <a href="_digital___output_8h_source.html#l00072">Digital_Output.h:72</a></div></div>
<div class="ttc" id="group__tekdaqc__configuration_html_ga5aeffa7a603f954a637f967f37c29ec6"><div class="ttname"><a href="group__tekdaqc__configuration.html#ga5aeffa7a603f954a637f967f37c29ec6">DigitalLevelToString</a></div><div class="ttdeci">const char * DigitalLevelToString(DigitalLevel_t level)</div><div class="ttdoc">Converts a digital logic level enum value to a human readable string. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___config_8c_source.html#l00287">Tekdaqc_Config.c:287</a></div></div>
<div class="ttc" id="group__digital__output_html_ga7f6d7f4a8ed42dfa380728cad94dbc28"><div class="ttname"><a href="group__digital__output.html#ga7f6d7f4a8ed42dfa380728cad94dbc28">SetDigitalOutput</a></div><div class="ttdeci">Tekdaqc_Function_Error_t SetDigitalOutput(char keys[][MAX_COMMANDPART_LENGTH], char values[][MAX_COMMANDPART_LENGTH], uint8_t count)</div><div class="ttdoc">Sets a digital output to the specified state. </div><div class="ttdef"><b>Definition:</b> <a href="_digital___output_8c_source.html#l00406">Digital_Output.c:406</a></div></div>
<div class="ttc" id="struct_digital___output__t_html_ac7a7d7f3d154ec3152de97d06a7870f1"><div class="ttname"><a href="struct_digital___output__t.html#ac7a7d7f3d154ec3152de97d06a7870f1">Digital_Output_t::output</a></div><div class="ttdeci">GPO_TypeDef output</div><div class="ttdef"><b>Definition:</b> <a href="_digital___output_8h_source.html#l00089">Digital_Output.h:89</a></div></div>
<div class="ttc" id="group__digital__output_html_gaf266fa3481b0804611eb19719346b172"><div class="ttname"><a href="group__digital__output.html#gaf266fa3481b0804611eb19719346b172">DigitalOutputsInit</a></div><div class="ttdeci">void DigitalOutputsInit(void)</div><div class="ttdoc">Initializes the boards digital output data structures. </div><div class="ttdef"><b>Definition:</b> <a href="_digital___output_8c_source.html#l00177">Digital_Output.c:177</a></div></div>
<div class="ttc" id="group__board__channel__constants_html_ggab0f30599ceb99e5ba3b2908d8e9bd131aaee2b8395093e69408a16f6981d07fa9"><div class="ttname"><a href="group__board__channel__constants.html#ggab0f30599ceb99e5ba3b2908d8e9bd131aaee2b8395093e69408a16f6981d07fa9">CHANNEL_ADDED</a></div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___b_s_p_8h_source.html#l00284">Tekdaqc_BSP.h:284</a></div></div>
<div class="ttc" id="group__tekdaqc__error_html_gga19df05d919ecca7a7501b35ae9080a32ab7463197737e0940ba45390cf1a51083"><div class="ttname"><a href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32ab7463197737e0940ba45390cf1a51083">ERR_DOUT_DOES_NOT_EXIST</a></div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___error_8h_source.html#l00095">Tekdaqc_Error.h:95</a></div></div>
<div class="ttc" id="group__analog__input__constants_html_gae3bad9f0257d0c7056e81f3257d2ec80"><div class="ttname"><a href="group__analog__input__constants.html#gae3bad9f0257d0c7056e81f3257d2ec80">NULL_CHANNEL</a></div><div class="ttdeci">#define NULL_CHANNEL</div><div class="ttdoc">Value to represent that an channel is not being used. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___b_s_p_8h_source.html#l00153">Tekdaqc_BSP.h:153</a></div></div>
<div class="ttc" id="struct_digital___output__t_html_af161017167d4afb064b9c104877041e9"><div class="ttname"><a href="struct_digital___output__t.html#af161017167d4afb064b9c104877041e9">Digital_Output_t::name</a></div><div class="ttdeci">char name[MAX_DIGITAL_OUTPUT_NAME_LENGTH]</div><div class="ttdef"><b>Definition:</b> <a href="_digital___output_8h_source.html#l00090">Digital_Output.h:90</a></div></div>
<div class="ttc" id="group__tekdaqc__configuration_html_ga163b2a4cc55a569e988df48908631967"><div class="ttname"><a href="group__tekdaqc__configuration.html#ga163b2a4cc55a569e988df48908631967">WriteFunction</a></div><div class="ttdeci">void(* WriteFunction)(char *str)</div><div class="ttdoc">A common function pointer for specifying a function to write string data. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc__config_8h_source.html#l00072">Tekdaqc_config.h:72</a></div></div>
<div class="ttc" id="group__digital__output_html_ga392c891d1dfd4610ea0e1ef67f76872b"><div class="ttname"><a href="group__digital__output.html#ga392c891d1dfd4610ea0e1ef67f76872b">GetDigitalOutputByNumber</a></div><div class="ttdeci">Digital_Output_t * GetDigitalOutputByNumber(uint8_t number)</div><div class="ttdoc">Retrieves the requested digital output. </div><div class="ttdef"><b>Definition:</b> <a href="_digital___output_8c_source.html#l00394">Digital_Output.c:394</a></div></div>
<div class="ttc" id="group__tekdaqc__error_html_gga19df05d919ecca7a7501b35ae9080a32a520fcf3c938ea91074fa15aa6802bda2"><div class="ttname"><a href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32a520fcf3c938ea91074fa15aa6802bda2">ERR_DOUT_OUTPUT_EXISTS</a></div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___error_8h_source.html#l00094">Tekdaqc_Error.h:94</a></div></div>
<div class="ttc" id="group__tle7232__driver_html_ggabd1d28f92015db8d6a418c8346f4b4ffa5f2571f5978ed414d188b4d9d045e4c3"><div class="ttname"><a href="group__tle7232__driver.html#ggabd1d28f92015db8d6a418c8346f4b4ffa5f2571f5978ed414d188b4d9d045e4c3">TLE7232_REG_CTL</a></div><div class="ttdef"><b>Definition:</b> <a href="_t_l_e7232___relay_driver_8h_source.html#l00163">TLE7232_RelayDriver.h:163</a></div></div>
<div class="ttc" id="group__tle7232__driver_html_ga5d2ff3c331e9b1bd5d1d4522ffc92b5d"><div class="ttname"><a href="group__tle7232__driver.html#ga5d2ff3c331e9b1bd5d1d4522ffc92b5d">TLE7232_ReadRegister</a></div><div class="ttdeci">uint8_t TLE7232_ReadRegister(TLE7232_Register_t reg, uint8_t chip_index)</div><div class="ttdoc">Read the specified register of a specific device. </div><div class="ttdef"><b>Definition:</b> <a href="_t_l_e7232___relay_driver_8c_source.html#l00474">TLE7232_RelayDriver.c:474</a></div></div>
<div class="ttc" id="_tekdaqc___debug_8h_html"><div class="ttname"><a href="_tekdaqc___debug_8h.html">Tekdaqc_Debug.h</a></div><div class="ttdoc">Header file to define precompiler variables for debugging sections of code. </div></div>
<div class="ttc" id="_tekdaqc___command_interpreter_8h_html"><div class="ttname"><a href="_tekdaqc___command_interpreter_8h.html">Tekdaqc_CommandInterpreter.h</a></div><div class="ttdoc">Header file for the Tekdaqc_CommandInterpreter algorithm. </div></div>
<div class="ttc" id="group__tekdaqc__error_html_gga19df05d919ecca7a7501b35ae9080a32a647717acbbc83fc85a04b32e58a9c92a"><div class="ttname"><a href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32a647717acbbc83fc85a04b32e58a9c92a">ERR_DOUT_FAILED_WRITE</a></div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___error_8h_source.html#l00096">Tekdaqc_Error.h:96</a></div></div>
<div class="ttc" id="group__command__interpreter_html_gaf583eedd117e9397b34163b0ed4791c3"><div class="ttname"><a href="group__command__interpreter.html#gaf583eedd117e9397b34163b0ed4791c3">ADD_DIGITAL_OUTPUT_PARAMS</a></div><div class="ttdeci">const char * ADD_DIGITAL_OUTPUT_PARAMS[NUM_ADD_DIGITAL_OUTPUT_PARAMS]</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00201">Tekdaqc_CommandInterpreter.c:201</a></div></div>
<div class="ttc" id="group__digital__output_html_ga51fe681dd6e8e9f84a03b8c71af0b71d"><div class="ttname"><a href="group__digital__output.html#ga51fe681dd6e8e9f84a03b8c71af0b71d">SampleDigitalOutput</a></div><div class="ttdeci">void SampleDigitalOutput(Digital_Output_t *output)</div><div class="ttdoc">Samples the specified digital output&#39;s level and writes out the result. </div><div class="ttdef"><b>Definition:</b> <a href="_digital___output_8c_source.html#l00497">Digital_Output.c:497</a></div></div>
<div class="ttc" id="group__tle7232__driver_html_ga84bb3f68b575c6add1c27f053b87746a"><div class="ttname"><a href="group__tle7232__driver.html#ga84bb3f68b575c6add1c27f053b87746a">TLE7232_Status_t</a></div><div class="ttdeci">TLE7232_Status_t</div><div class="ttdoc">TLE7232 Status enumeration. Defines the possible status states of the TLE7232. </div><div class="ttdef"><b>Definition:</b> <a href="_t_l_e7232___relay_driver_8h_source.html#l00170">TLE7232_RelayDriver.h:170</a></div></div>
<div class="ttc" id="group__digital__output_html_gae27ad2dffb82e46632339521c3cfd6ee"><div class="ttname"><a href="group__digital__output.html#gae27ad2dffb82e46632339521c3cfd6ee">SetDigitalOutputFaultStatus</a></div><div class="ttdeci">bool SetDigitalOutputFaultStatus(TLE7232_Status_t status, uint8_t chip_id, uint8_t channel)</div><div class="ttdoc">Sets the fault status register on the specified output driver. </div><div class="ttdef"><b>Definition:</b> <a href="_digital___output_8c_source.html#l00587">Digital_Output.c:587</a></div></div>
<div class="ttc" id="group__board__channel__constants_html_ggab0f30599ceb99e5ba3b2908d8e9bd131a4ecfadabb635f0b5dd33b66498b2d04f"><div class="ttname"><a href="group__board__channel__constants.html#ggab0f30599ceb99e5ba3b2908d8e9bd131a4ecfadabb635f0b5dd33b66498b2d04f">CHANNEL_NOTADDED</a></div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___b_s_p_8h_source.html#l00285">Tekdaqc_BSP.h:285</a></div></div>
<div class="ttc" id="group__tle7232__driver_html_gadefac9d800f68f872c6c8c4d5b3379cd"><div class="ttname"><a href="group__tle7232__driver.html#gadefac9d800f68f872c6c8c4d5b3379cd">TLE7232_ReadAllDiagnosis</a></div><div class="ttdeci">void TLE7232_ReadAllDiagnosis(void)</div><div class="ttdoc">Read the diagnosis registers of all devices. </div><div class="ttdef"><b>Definition:</b> <a href="_t_l_e7232___relay_driver_8c_source.html#l00274">TLE7232_RelayDriver.c:274</a></div></div>
<div class="ttc" id="_t_l_e7232___relay_driver_8h_html"><div class="ttname"><a href="_t_l_e7232___relay_driver_8h.html">TLE7232_RelayDriver.h</a></div><div class="ttdoc">Header file for the TLE7232 Output driver. </div></div>
<div class="ttc" id="struct_digital___output__t_html_a6f1a4402ff8651dfc5e453b5e3154c2d"><div class="ttname"><a href="struct_digital___output__t.html#a6f1a4402ff8651dfc5e453b5e3154c2d">Digital_Output_t::added</a></div><div class="ttdeci">ChannelAdded_t added</div><div class="ttdef"><b>Definition:</b> <a href="_digital___output_8h_source.html#l00088">Digital_Output.h:88</a></div></div>
<div class="ttc" id="group__digital__output_html_ga3ae9f85352ddfe3c29046f9d3b068d64"><div class="ttname"><a href="group__digital__output.html#ga3ae9f85352ddfe3c29046f9d3b068d64">RemoveDigitalOutput</a></div><div class="ttdeci">Tekdaqc_Function_Error_t RemoveDigitalOutput(char keys[][MAX_COMMANDPART_LENGTH], char values[][MAX_COMMANDPART_LENGTH], int count)</div><div class="ttdoc">Removes a digital output, marking it for exclusion from the state machine. </div><div class="ttdef"><b>Definition:</b> <a href="_digital___output_8c_source.html#l00345">Digital_Output.c:345</a></div></div>
<div class="ttc" id="group__digital__output_html_ga3853c412989dc241c2c9157e5102673b"><div class="ttname"><a href="group__digital__output.html#ga3853c412989dc241c2c9157e5102673b">SetDigitalOutputWriteFunction</a></div><div class="ttdeci">void SetDigitalOutputWriteFunction(WriteFunction writeFunction)</div><div class="ttdoc">Sets the pointer to the function to invoke when digital output data needs to be written. </div><div class="ttdef"><b>Definition:</b> <a href="_digital___output_8c_source.html#l00487">Digital_Output.c:487</a></div></div>
<div class="ttc" id="group__tekdaqc__timers_html_ga11a66b1728633b77403a588f66a1be95"><div class="ttname"><a href="group__tekdaqc__timers.html#ga11a66b1728633b77403a588f66a1be95">GetLocalTime</a></div><div class="ttdeci">uint64_t GetLocalTime(void)</div><div class="ttdoc">Retrieve the local time stamp. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___timers_8c_source.html#l00093">Tekdaqc_Timers.c:93</a></div></div>
<div class="ttc" id="group__command__interpreter_html_gab8e88e0e75930f03474e1ff9e232ef63"><div class="ttname"><a href="group__command__interpreter.html#gab8e88e0e75930f03474e1ff9e232ef63">REMOVE_DIGITAL_OUTPUT_PARAMS</a></div><div class="ttdeci">const char * REMOVE_DIGITAL_OUTPUT_PARAMS[NUM_REMOVE_DIGITAL_OUTPUT_PARAMS]</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00207">Tekdaqc_CommandInterpreter.c:207</a></div></div>
<div class="ttc" id="group__tekdaqc__error_html_gga19df05d919ecca7a7501b35ae9080a32ace6d9a0db21ee0e4c19401983885ceb5"><div class="ttname"><a href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32ace6d9a0db21ee0e4c19401983885ceb5">ERR_DOUT_PARSE_MISSING_KEY</a></div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___error_8h_source.html#l00090">Tekdaqc_Error.h:90</a></div></div>
<div class="ttc" id="group__command__interpreter_html_gaac55dd13b66c6ed14773e930596be11e"><div class="ttname"><a href="group__command__interpreter.html#gaac55dd13b66c6ed14773e930596be11e">NUM_SET_DIGITAL_OUTPUT_PARAMS</a></div><div class="ttdeci">#define NUM_SET_DIGITAL_OUTPUT_PARAMS</div><div class="ttdoc">The number of parameters for the SET_DIGITAL_OUTPUT command. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00286">Tekdaqc_CommandInterpreter.h:286</a></div></div>
<div class="ttc" id="group__tekdaqc__error_html_gga19df05d919ecca7a7501b35ae9080a32a479b09599d4e42281405cbe309eb3205"><div class="ttname"><a href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32a479b09599d4e42281405cbe309eb3205">ERR_DOUT_OUTPUT_NOT_FOUND</a></div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___error_8h_source.html#l00091">Tekdaqc_Error.h:91</a></div></div>
<div class="ttc" id="struct_digital___output__t_html"><div class="ttname"><a href="struct_digital___output__t.html">Digital_Output_t</a></div><div class="ttdoc">Data structure used to store the state and requirements of a digital output of the Tekdaqc...</div><div class="ttdef"><b>Definition:</b> <a href="_digital___output_8h_source.html#l00087">Digital_Output.h:87</a></div></div>
<div class="ttc" id="struct_digital___output__t_html_a077d2fbd9f466d58856071f5314b9c09"><div class="ttname"><a href="struct_digital___output__t.html#a077d2fbd9f466d58856071f5314b9c09">Digital_Output_t::level</a></div><div class="ttdeci">DigitalLevel_t level</div><div class="ttdef"><b>Definition:</b> <a href="_digital___output_8h_source.html#l00091">Digital_Output.h:91</a></div></div>
<div class="ttc" id="group__tle7232__driver_html_gga84bb3f68b575c6add1c27f053b87746aa41ad46c089b8040e5c8fe85befa75589"><div class="ttname"><a href="group__tle7232__driver.html#gga84bb3f68b575c6add1c27f053b87746aa41ad46c089b8040e5c8fe85befa75589">TLE7232_Normal_Operation</a></div><div class="ttdef"><b>Definition:</b> <a href="_t_l_e7232___relay_driver_8h_source.html#l00174">TLE7232_RelayDriver.h:174</a></div></div>
<div class="ttc" id="group__tekdaqc__error_html_gga19df05d919ecca7a7501b35ae9080a32afb0f8766c1df8e8a426d924bcfc4f307"><div class="ttname"><a href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32afb0f8766c1df8e8a426d924bcfc4f307">ERR_DOUT_PARSE_ERROR</a></div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___error_8h_source.html#l00092">Tekdaqc_Error.h:92</a></div></div>
<div class="ttc" id="group__board__channel__constants_html_ggaee574a0d48c41a3e5426ffbf8ac4c5c4ab4d04526d504d52286c0125def0faef4"><div class="ttname"><a href="group__board__channel__constants.html#ggaee574a0d48c41a3e5426ffbf8ac4c5c4ab4d04526d504d52286c0125def0faef4">LOGIC_LOW</a></div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___b_s_p_8h_source.html#l00276">Tekdaqc_BSP.h:276</a></div></div>
<div class="ttc" id="group__tekdaqc__error_html_gga19df05d919ecca7a7501b35ae9080a32ad9259c255c285f14160be2c818aba367"><div class="ttname"><a href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32ad9259c255c285f14160be2c818aba367">ERR_DOUT_OUTPUT_UNSPECIFIED</a></div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___error_8h_source.html#l00093">Tekdaqc_Error.h:93</a></div></div>
<div class="ttc" id="group__board__channel__constants_html_gaee574a0d48c41a3e5426ffbf8ac4c5c4"><div class="ttname"><a href="group__board__channel__constants.html#gaee574a0d48c41a3e5426ffbf8ac4c5c4">DigitalLevel_t</a></div><div class="ttdeci">DigitalLevel_t</div><div class="ttdoc">Tekdaqc logic level enumeration. Defines the possible status states of an digital input/output to the...</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___b_s_p_8h_source.html#l00274">Tekdaqc_BSP.h:274</a></div></div>
<div class="ttc" id="group__command__interpreter_html_gaab1534ae5702e990bfdc0f8c85094df0"><div class="ttname"><a href="group__command__interpreter.html#gaab1534ae5702e990bfdc0f8c85094df0">NUM_REMOVE_DIGITAL_OUTPUT_PARAMS</a></div><div class="ttdeci">#define NUM_REMOVE_DIGITAL_OUTPUT_PARAMS</div><div class="ttdoc">The number of parameters for the REMOVE_DIGITAL_OUTPUT command. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00310">Tekdaqc_CommandInterpreter.h:310</a></div></div>
<div class="ttc" id="group__tekdaqc__error_html_gga19df05d919ecca7a7501b35ae9080a32a8758a8b600c1e97bf2120d7b094853d6"><div class="ttname"><a href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32a8758a8b600c1e97bf2120d7b094853d6">ERR_DOUT_OUTPUT_OUTOFRANGE</a></div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___error_8h_source.html#l00089">Tekdaqc_Error.h:89</a></div></div>
<div class="ttc" id="group__command__interpreter_html_gade511743b3ecf569a2e74c1b14291a5b"><div class="ttname"><a href="group__command__interpreter.html#gade511743b3ecf569a2e74c1b14291a5b">SET_DIGITAL_OUTPUT_PARAMS</a></div><div class="ttdeci">const char * SET_DIGITAL_OUTPUT_PARAMS[NUM_SET_DIGITAL_OUTPUT_PARAMS]</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00189">Tekdaqc_CommandInterpreter.c:189</a></div></div>
<div class="ttc" id="_tekdaqc___timers_8h_html"><div class="ttname"><a href="_tekdaqc___timers_8h.html">Tekdaqc_Timers.h</a></div><div class="ttdoc">Header file for the various timers used by the Tekdaqc. </div></div>
<div class="ttc" id="group__digital__output_html_ga43583966bde63db2887f604cf5787741"><div class="ttname"><a href="group__digital__output.html#ga43583966bde63db2887f604cf5787741">OUTPUT_ON</a></div><div class="ttdeci">#define OUTPUT_ON</div><div class="ttdoc">Redefinition of the LOGIC_LOW definition. Used as a code readability convenience. ...</div><div class="ttdef"><b>Definition:</b> <a href="_digital___output_8h_source.html#l00066">Digital_Output.h:66</a></div></div>
<div class="ttc" id="group__digital__output_html_gaa10fe33be14ef4d8e16e6345f57938c5"><div class="ttname"><a href="group__digital__output.html#gaa10fe33be14ef4d8e16e6345f57938c5">WriteDigitalOutput</a></div><div class="ttdeci">void WriteDigitalOutput(Digital_Output_t *output)</div><div class="ttdoc">Writes out the data for the specified digital output. </div><div class="ttdef"><b>Definition:</b> <a href="_digital___output_8c_source.html#l00523">Digital_Output.c:523</a></div></div>
<div class="ttc" id="_digital___output_8c_html_a60b907b7e51c1a4d6ba6be07f3237179"><div class="ttname"><a href="_digital___output_8c.html#a60b907b7e51c1a4d6ba6be07f3237179">DIGITAL_OUTPUT_FORMATTER</a></div><div class="ttdeci">#define DIGITAL_OUTPUT_FORMATTER</div><div class="ttdoc">The header format string for printing an analog input to a human readable string. ...</div><div class="ttdef"><b>Definition:</b> <a href="_digital___output_8c_source.html#l00046">Digital_Output.c:46</a></div></div>
<div class="ttc" id="group__command__parser_html_ga6147771b5547853f33eb838895e3d5a2"><div class="ttname"><a href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a></div><div class="ttdeci">#define MAX_COMMANDPART_LENGTH</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___b_s_p_8h_source.html#l00088">Tekdaqc_BSP.h:88</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_2ee1bcc70ffbdd9fa2e6058af4d56b44.html">TekDAQC_Firmware</a></li><li class="navelem"><a class="el" href="dir_487e5c767aeaee42821fd912e2f2cba6.html">src</a></li><li class="navelem"><a class="el" href="_digital___output_8c.html">Digital_Output.c</a></li>
    <li class="footer">Generated on Mon Jul 28 2014 23:42:39 for Tekdaqc Firmware by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
